package cn.lanqiao.pojo;

import java.util.Set;

public class Users {
    private Integer uid;
    private String username;
    private  String password;
    private String birthday;
    private Set<Orders> ordersSet;

    public Users(Integer uid, String username, String password, String birthday, Set<Orders> ordersSet) {
        this.uid = uid;
        this.username = username;
        this.password = password;
        this.birthday = birthday;
        this.ordersSet = ordersSet;
    }

    public Users() {
    }

    public Users(String username, String password, String birthday, Set<Orders> ordersSet) {
        this.username = username;
        this.password = password;
        this.birthday = birthday;
        this.ordersSet = ordersSet;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Set<Orders> getOrdersSet() {
        return ordersSet;
    }

    public void setOrdersSet(Set<Orders> ordersSet) {
        this.ordersSet = ordersSet;
    }

    @Override
    public String toString() {
        return "Users{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", birthday='" + birthday + '\'' +
                ", ordersSet=" + ordersSet +
                '}';
    }
}